To insert a script in an HTML document, use the <script> tag. Use the type attribute to define the scripting language.
<script type="text/javascript">